package web.req;

import org.hibernate.validator.constraints.NotBlank;
import web.Request;

import javax.validation.constraints.Pattern;

/**
 * Created by aceyin on 15/6/18.
 */
public class CaptchaRequest extends Request {
    @NotBlank(message = "{captcha.mobile.is.required}")
    @Pattern(regexp = "\\d{11}", message = "{captcha.mobile.is.invalid}")
    private String mobile;
    @NotBlank(message = "{captcha.usage.is.required}")
    private String usage;

    public String getUsage() {
        return usage;
    }

    public void setUsage(String usage) {
        this.usage = usage;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
